package org.ejc.persist.model;

import java.io.Serializable;
import java.util.Date;
import java.util.Set;
import org.apache.commons.lang.builder.ToStringBuilder;


/** @author Hibernate CodeGenerator */
public class Task implements Serializable {

    /** identifier field */
    private Integer taskId;

    /** nullable persistent field */
    private String taskComments;

    /** nullable persistent field */
    private Date taskDate;

    /** nullable persistent field */
    private Date startTime;

    /** nullable persistent field */
    private Date endTime;

    /** persistent field */
    private org.ejc.persist.model.TaskType taskType;

    /** persistent field */
    private org.ejc.persist.model.Event event;

    /** persistent field */
    private org.ejc.persist.model.Location location;

    /** persistent field */
    private Set taskHasConventionExecutives;

    /** full constructor */
    public Task(Integer taskId, String taskComments, Date taskDate, Date startTime, Date endTime, org.ejc.persist.model.TaskType taskType, org.ejc.persist.model.Event event, org.ejc.persist.model.Location location, Set taskHasConventionExecutives) {
        this.taskId = taskId;
        this.taskComments = taskComments;
        this.taskDate = taskDate;
        this.startTime = startTime;
        this.endTime = endTime;
        this.taskType = taskType;
        this.event = event;
        this.location = location;
        this.taskHasConventionExecutives = taskHasConventionExecutives;
    }

    /** default constructor */
    public Task() {
    }

    /** minimal constructor */
    public Task(Integer taskId, org.ejc.persist.model.TaskType taskType, org.ejc.persist.model.Event event, org.ejc.persist.model.Location location, Set taskHasConventionExecutives) {
        this.taskId = taskId;
        this.taskType = taskType;
        this.event = event;
        this.location = location;
        this.taskHasConventionExecutives = taskHasConventionExecutives;
    }

    public Integer getTaskId() {
        return this.taskId;
    }

    public void setTaskId(Integer taskId) {
        this.taskId = taskId;
    }

    public String getTaskComments() {
        return this.taskComments;
    }

    public void setTaskComments(String taskComments) {
        this.taskComments = taskComments;
    }

    public Date getTaskDate() {
        return this.taskDate;
    }

    public void setTaskDate(Date taskDate) {
        this.taskDate = taskDate;
    }

    public Date getStartTime() {
        return this.startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return this.endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public org.ejc.persist.model.TaskType getTaskType() {
        return this.taskType;
    }

    public void setTaskType(org.ejc.persist.model.TaskType taskType) {
        this.taskType = taskType;
    }

    public org.ejc.persist.model.Event getEvent() {
        return this.event;
    }

    public void setEvent(org.ejc.persist.model.Event event) {
        this.event = event;
    }

    public org.ejc.persist.model.Location getLocation() {
        return this.location;
    }

    public void setLocation(org.ejc.persist.model.Location location) {
        this.location = location;
    }

    public Set getTaskHasConventionExecutives() {
        return this.taskHasConventionExecutives;
    }

    public void setTaskHasConventionExecutives(Set taskHasConventionExecutives) {
        this.taskHasConventionExecutives = taskHasConventionExecutives;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("taskId", getTaskId())
            .toString();
    }

}
